package com.bdqn.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bdqn.dto.Dto;
import com.bdqn.model.CustomerBaseInfo;
import com.github.pagehelper.PageInfo;


public interface CustomService {

	List<CustomerBaseInfo> selectLikeName(@Param("companyName") String companyName, @Param("agent")String agent);

	List<CustomerBaseInfo> selectAll(@Param("agent")String agent);

	PageInfo<CustomerBaseInfo> Search(String agent);

	PageInfo<CustomerBaseInfo> likeSearch(String companyName, String agent);

	boolean searchExist(String companyName, String agent);

	PageInfo<CustomerBaseInfo> page(Dto dto,@Param("agent") String agent);

	CustomerBaseInfo check(@Param("id")Integer id);

	int alter(CustomerBaseInfo cust);

	int changeState(Integer id, String state);




}
